From dd56f42f5ce0a3ade1ce7b377a1da7a718f037ec Mon Sep 17 00:00:00 2001 From: tsteven4 <13596209+tsteven4@users.noreply.github.com> Date: Sat, 27 Nov 2021 23:37:59 -0700 Subject: [PATCH] fix lgtm detected ill-defined for loop. --- bcr.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bcr.cc b/bcr.cc index 1d744c8e7..b8bf159c1 100644 --- a/bcr.cc +++ b/bcr.cc @@ -252,7 +252,7 @@ bcr_data_read() route->rte_name = routename; } - for (int index = 1; index > 0; index ++) { + for (int index = 1; ; index++) { char station[32]; QString str; int mlat, mlon; /* mercator data */ -- 2.30.2